<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios@0.12.0/dist/axios.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/lodash@4.13.1/lodash.min.js"></script>
</head>
<body>
    <div id="app">
        <p :style="{ color:color,'font-size':size}">测试</p>
        <p :style="test">测试111</p>
        <p :style="[show,show1]">测试11</p>
    </div>

    <script>
        var app = new Vue({
            el:"#app",
            data:{
                color: 'blue',
                size: '50px',
                test:{
                    color:'red',
                    'font-size':'30px',

                },
                show:{
                    'font-size':'18px',
                },
                show1:{
                    color:'green'
                },
            }
        })
    </script>
</body>
</html>